<?php
/**
 * @CopyRight  (C)2000-2012 XiangYun Development team Inc.
 * @WebSite    www.cn86.cn
 * @Author     XiangYun
 * @Brief      XiangYun v1.0
 * @Update     2012.07.07
**/
require '../source/core/run.php';
require 'admin.inc.php';

require 'config.php';
$tpl->assign('version', $version);

$style_config = require CHENCY_ROOT.'data/cache/style_config.php';
if(!empty($style_config))
{
	$tpl->assign('current_style', $style_config['current_style']);
}

$mod	= Core_Fun::rec_get("mod");

if($mod == "drag")
{
	$tpl->display(ADMIN_TEMPLATE."frm_drag.tpl");
}
elseif($mod == "left")
{
	$tpl->display(ADMIN_TEMPLATE."frm_left.tpl");
}
elseif($mod == "top")
{
	$tpl->display(ADMIN_TEMPLATE."frm_top.tpl");
}
elseif($mod == "footer")
{
	$tpl->display(ADMIN_TEMPLATE."frm_footer.tpl");
}
elseif($mod == "main")
{
	$tpl->display(ADMIN_TEMPLATE."frm_main.tpl");
}
else
{
	$tpl->display(ADMIN_TEMPLATE."admincp.tpl");
}
?>